export default {
    data: {
        title: "",
        titleActiveColor: "#0099ff"
    },
    props: {
        menuData: {
            default: [{
                          "imgSrc": "/common/icon/home.png", "title": "首页", imgSrcActive: "/common/icon/home-active.png"
                      },
                      {
                          "imgSrc": "/common/icon/scene.png",
                          "title": "场景",
                          imgSrcActive: "/common/icon/scene-active.png"
                      },
                      {
                          "imgSrc": "/common/icon/icon/message.png",
                          "title": "消息",
                          imgSrcActive: "/common/icon/message-active.png"
                      },
                      {
                          "imgSrc": "/common/icon/myinfo.png",
                          "title": "我的",
                          imgSrcActive: "/common/icon/myinfo-active.png"
                      }
            ]
        },
        defaultIndex: {
            default: 0
        },
    },
    onInit() {
        this.title = this.$t('strings.world');
    },
    changeMenu(selectedIndex) {
        this.$emit('changeMenu', {
            index: selectedIndex
        })
        console.info("selectedIndex=" + selectedIndex)
        this.defaultIndex = selectedIndex
    },
}
